package com.guomao.controller;


import com.guomao.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class DepartmentController {

    @Autowired
    private DepartmentService departmentService;

    @RequestMapping("/queryDepts")
    public String queryDepartments() {
        System.out.println("DepartmentController.queryDepartments...");
        departmentService.queryDepts();
        return "test";
    }
}